#include <cstdio>
#include <queue>
using namespace std;
queue<int> q;
int main ()
{
    int i,n,flag=1;
    scanf("%d",&n);
    for (i=1;i<=n;i++) q.push(i);
    while (!q.empty())
    {
        if (flag)
        {
           printf("%d",q.front());
           flag=0;
        }
        else printf(" %d",q.front());
        q.pop();//printf(" x=%d",q.size());
        q.push(q.front());//printf(" x=%d wei=%d",q.size(),q.back());
        q.pop();//printf(" x=%d",q.size());
    }
    return 0;
}
